let fs = require('fs');
let path = require('path');



let filepath = path.join(__dirname,'../../editor/assets/ball.obj');
let content = fs.readFileSync(filepath,'utf8');

let OBJ = require('webgl-obj-loader');


let mesh = new OBJ.Mesh(content);


// parseObj(fs.createReadStream('myObject.obj'), function (err, res) {
//     if (err) throw new Error("Error parsing OBJ file: " + err);
//     else {
//         console.log(res.length + ' objects in file');
//         for (var i = 0; i < res.length; i++) {
//             console.log('Obj ' + (i + 1) + ', vertex 1: ' + res[i].v[0]);
//         }
//     }
// });
